---
// 页脚组件
const year = new Date().getFullYear();
---

<footer class="footer">
  <div class="footer-container">
    <div class="footer-top">
      <div class="footer-logo">
        <i class="fas fa-chart-line logo-icon"></i>
        <h2>量化帮</h2>
        <p>专业的量化交易平台，提供高效、安全的交易解决方案</p>
        <div class="social-links">
          <a href="#" aria-label="微信"><i class="fab fa-weixin"></i></a>
          <a href="#" aria-label="微博"><i class="fab fa-weibo"></i></a>
          <a href="#" aria-label="QQ"><i class="fab fa-qq"></i></a>
          <a href="#" aria-label="推特"><i class="fab fa-twitter"></i></a>
          <a href="#" aria-label="领英"><i class="fab fa-linkedin"></i></a>
        </div>
      </div>
      
      <div class="footer-links">
        <div class="footer-links-column">
          <h3>产品</h3>
          <ul>
            <li><a href="#">量化分析</a></li>
            <li><a href="#">交易机器人</a></li>
            <li><a href="#">数据分析</a></li>
            <li><a href="#">风险管理</a></li>
          </ul>
        </div>
        
        <div class="footer-links-column">
          <h3>学习资源</h3>
          <ul>
            <li><a href="#">教程</a></li>
            <li><a href="#">文档</a></li>
            <li><a href="#">博客</a></li>
            <li><a href="#">案例研究</a></li>
          </ul>
        </div>
        
        <div class="footer-links-column">
          <h3>公司</h3>
          <ul>
            <li><a href="#">关于我们</a></li>
            <li><a href="#">联系我们</a></li>
            <li><a href="#">招贤纳士</a></li>
            <li><a href="#">媒体报道</a></li>
          </ul>
        </div>
        
        <div class="footer-links-column">
          <h3>法律</h3>
          <ul>
            <li><a href="#">服务条款</a></li>
            <li><a href="#">隐私政策</a></li>
            <li><a href="#">Cookie政策</a></li>
            <li><a href="#">法律声明</a></li>
          </ul>
        </div>
      </div>
    </div>
    
    <div class="footer-bottom">
      <div class="copyright">
        <p>&copy; {year} 量化帮. 保留所有权利.</p>
      </div>
      <div class="language-selector">
        <select name="language" id="language">
          <option value="zh-cn">简体中文</option>
          <option value="en">English</option>
          <option value="ja">日本語</option>
          <option value="ko">한국어</option>
        </select>
      </div>
    </div>
  </div>
</footer>

<style>
  .footer {
    background: linear-gradient(to right, #031b4e, #025091);
    color: #fff;
    padding: 4rem 0 2rem;
  }

  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }

  .footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
  }

  .footer-logo h2 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
    background: linear-gradient(to right, #ffffff, #a3c8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .logo-icon {
    font-size: 2rem;
    color: #4d9fff;
    margin-bottom: 0.5rem;
  }

  .footer-logo p {
    color: #b8c7e0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  .social-links {
    display: flex;
    gap: 1rem;
  }

  .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s;
  }

  .social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .social-links a i {
    font-size: 1.2rem;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .footer-links-column h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
  }

  .footer-links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-links-column li {
    margin-bottom: 0.8rem;
  }

  .footer-links-column a {
    color: #b8c7e0;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
  }

  .footer-links-column a:hover {
    color: #fff;
    transform: translateX(3px);
  }

  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .copyright p {
    color: #b8c7e0;
    font-size: 0.9rem;
  }

  .language-selector select {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
  }

  .language-selector select option {
    background-color: #031b4e;
  }

  @media (max-width: 992px) {
    .footer-top {
      grid-template-columns: 1fr;
      gap: 3rem;
    }

    .footer-links {
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
    }
  }

  @media (max-width: 576px) {
    .footer {
      padding: 3rem 0 1.5rem;
    }
    
    .footer-links {
      grid-template-columns: 1fr;
    }
    
    .footer-bottom {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
    }
  }
</style> 